<template>
  <view :style="{fontSize:size+'rpx',color:color}">
	<view v-if="isNaN(Number(price))||isNaN(Number(point))">正在计算</view>
    <view v-else-if="point==0">￥{{price/100}}</view>
    <view v-else-if="price==0">{{point}}积分</view>
    <view v-else>￥{{price/100}}+{{point}}积分</view>
  </view>
</template>

<script setup>
  defineProps({
    point: {
      type: Number,
      default: 0
    },
    price: {
      type: Number,
      default: 0
    },
    size:{
      type: Number,
      default: 35
    },
    color:{
      type: String,
      default: '#c52f2f'
    }
  })
</script>
